<!-- Begin Navigation -->
<div id="navigation">
	<!--<ul>
		<li><a href="#" title="Home Page"><span>Home</span></a></li>
		<li><a href="#" title="Support Page"><span>Support</span></a></li>
		<li><a href="#" title="My Account Page"><span>My Account</span></a></li>
		<li><a href="#" title="Store Page"><span>The Store</span></a></li>
		<li><a href="#" title="Contact Page"><span>Contact</span></a></li>
	</ul>-->
	
	
		<ul id="menu">
			<?php
				$sql="select * from tbl_menu_grouping where group_na='front' and stat='A'";
				$res=$this->db->query($sql)->result_array();
				foreach($res as $value){
					
			?>
					<li><a href="<?=($value['url']!='#' ? base_url().$value['url'] : $value['url']);?>"><?=$value['menu_grouping_name'];?></a>
			<?php
					
					$sql_sub="select * from tbl_menu where menu_grouping_id='".$value["menu_grouping_id"]."' and stat='A'";
					$res_sub=$this->db->query($sql_sub)->result_array();
					if(count($res_sub)>0){
						$html ='<div class="dropdown_2columns">';
						foreach($res_sub as $v){
								$html .='<a href="'.base_url().$v['menu_url'].'">'.$v['menu_name'].'</a><br />';
						}
						$html .="</div>";
						echo $html;
					}					
			?>
					</li>
			<?php
				
				}
			?>
		</ul>
<div class="cl">&nbsp;</div>
</div>
<!-- End Navigation -->